Skip to content

Support turso:// URLs in the Sequel adapter - #1

Merged
makevoid merged 1 commit into
mainfrom
support-turso-url
Oct 31, 2026
Merged

makevoid merged 1 commit into
mainfrom
support-turso-url

Conversation

@makevoid

Copy link
Copy Markdown
Owner

Turso Cloud supplies turso:// database URLs, but the adapter currently treats that scheme as a local filename when passed as database: and cannot load it through Sequel.connect(url). This change recognizes the scheme and normalizes it to https:// for the existing native driver.

  • Accept turso:// through database:, url:, and the direct Sequel URL form, including replica configuration.
  • Preserve URL validation rejecting embedded credentials, query parameters, and fragments.
  • Add configuration and adapter-registration regression tests, document the URL alias, and update the hosted verification record.

The turso_libsql 0.2.0 pin remains unchanged because 0.2.1 contains native credential debug logging.

Validation on Apple Silicon macOS / Ruby 4.0.5 / Sequel 5.109.0:

  • bundle exec rake check: syntax/warning and visibility checks passed; 42 tests, 206 assertions, no failures or errors.
  • Warning-enabled test/remote.rb against a real hosted Turso database using a turso:// URL: 5 tests, 24 assertions, no failures or errors. Covered authenticated HTTPS CRUD, bindings, Unicode/blobs, constraints, transactions/savepoints/rollback, reconnect persistence, schema metadata, prepared model operations, and returning writes. Temporary test tables were removed afterward.

Embedded replication, credential rotation, and production load behavior remain unverified.

@makevoid
makevoid merged commit 037d32b into main Oct 31, 2026
3 checks passed
@makevoid
makevoid deleted the support-turso-url branch October 31, 2026 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant